<?php

/**
 * LoginForm class.
 * LoginForm is the data structure for keeping
 * user login form data. It is used by the 'login' action of 'SiteController'.
 */
class SelectForm extends CFormModel
{
	public $level;
	public $num;
	public $eventid;
	public $userid;

	 
	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			// username and password are required
			array('level, num, eventid', 'required'),
			array('userid', 'numerical', 'integerOnly'=>true),
			// rememberMe needs to be a boolean
			 
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'level'=>'奖项',
			'num'=>'数量',
			'userid'=>'测试中奖用户id',
			'eventid'=>'活动',
		);
	}

	 
}
